body {
    margin: 0 auto;
    min-width: 320px;
    max-width: 640px;
    width: 100%;
    padding-bottom: 34px;
    line-height: 1.5;
    font-size: 14px;
    font-family: -apple-system, 'Helvetica Neue', sans-serif, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans';
}

* {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
}

img {
    vertical-align: middle;
}

em {
    font-style: normal;
}

a {
    text-decoration: none;
    color: #999;
}

.clear-fix::after,
.clear-fix::before {
    content: "";
    display: table;
}

.clear-fix::after {
    clear: both;
}


/* 头部分 */

header {
    height: 45px;
    background-color: #232326;
}

header ul li {
    float: left;
    text-align: center;
    line-height: 45px;
    height: 45px;
}

header ul li:nth-child(1) {
    width: 8%;
}

header ul li:nth-child(1) img {
    width: 16px;
    height: 16px;
}

header ul li:nth-child(2) {
    width: 10%;
}

header ul li:nth-child(2) img {
    width: 30px;
}

header ul li:nth-child(3) {
    width: 57%;
    font-weight: 500;
    color: #fff;
}

header ul li:nth-child(4) {
    float: right;
    width: 25%;
    background-color: #f63515;
    text-align: center;
    color: white;
    font-size: 16px;
}


/* 搜索栏内部分 */

.search_box {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    height: 44px;
    background-color: #e62012;
}

.menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 44px;
    line-height: 44px;
    text-align: right;
}

.menu a img {
    width: 20px;
    height: 16px;
}

.search {
    margin: 0 50px;
    height: 30px;
    background-color: white;
    margin-top: 7px;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border: none;
    outline: none;
}

.search .logo {
    position: absolute;
    width: 20px;
    height: 15px;
    background: url(../images/jd.png) no-repeat;
    background-size: 20px 15px;
    margin: 8px 8px 0 15px;
    border-right: 1px solid #ddd;
    padding-right: 5px;
}

.search .fd-icon {
    position: absolute;
    left: 100px;
    top: 14px;
    width: 20px;
    height: 18px;
    /* background: url(../images/jd-sprites1.png) no-repeat -123px 0; */
    background: url(../images/jd-sprites.png) no-repeat -81px 0;
    background-size: 200px auto;
}

.search input {
    margin-left: 80px;
    margin-top: 7px;
    border: none;
    outline: none;
}

.search input::placeholder {
    color: rgb(129, 127, 127);
}

.login {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 44px;
    line-height: 44px;
}

.login a {
    text-align: left;
    color: white;
    font-size: 14px;
}


/* 主体部分 */

.main {
    width: 100%;
    background-color: rgb(247, 247, 247);
}


/* 轮播图部分 */

.slider-wrapper {
    height: 90px;
    background-color: #e62012;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.lunbo {
    overflow: hidden;
    width: 96%;
    margin: 0 auto;
    height: 150px;
    background-color: salmon;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.lunbo ul li {
    width: 100%;
    height: 150px;
}

.lunbo ul li a {
    height: 150px;
    display: block;
}

.lunbo ul li a img {
    width: 100%;
    height: 100%;
}

.lunbo .list-dot {
    width: 100%;
    text-align: center;
}

.lunbo .list-dot a {
    display: inline-block;
    margin-left: 2px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, .3);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.lunbo .list-dot .active {
    background-color: #e62012;
}

.box-list {
    height: 180px;
    margin-top: 60px;
}

.box-list ul li {
    float: left;
    width: 20%;
    height: 85px;
    text-align: center;
}

.box-list ul li img {
    width: 40px;
    height: 40px;
    margin-top: 10px;
}

.box-list ul li p {
    text-align: center;
    color: #666;
    font-size: 14px;
}


/* 京东秒杀 */

.jdms-box {
    width: 96%;
    margin: 0 auto;
    height: 140px;
    background-color: white;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.jdms-box-hb h3 {
    float: left;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-left: 10px;
    line-height: 25px;
}

.jdms-box-hb a {
    display: block;
    float: right;
    font-size: 12px;
    line-height: 25px;
    color: #e62012;
}

.jdms-box-hb a::after {
    content: ">";
    float: right;
    display: block;
    width: 15px;
    height: 15px;
    margin-right: 15px;
    margin-left: 5px;
    margin-top: 5px;
    line-height: 13px;
    text-align: center;
    color: rgb(231, 226, 226);
    background-color: #e62012;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.jsms-box-db {
    width: 100%;
    height: 30px;
}

.jsms-box-db ul li {
    float: left;
    width: 16.6666%;
    text-align: center;
}

.jsms-box-db ul li .item-img a {
    display: block;
}

.jsms-box-db ul li .item-img a img {
    width: 55px;
    height: 55px;
    margin: 10px 0;
}

.item-price {
    line-height: 15px;
}

.item-price .new-price {
    color: #f2270c;
    font-size: 14px;
}

.item-price .old-price {
    text-decoration: line-through;
    font-size: 12px;
    color: #999;
}


/* 高效办公 */

.gx-work {
    width: 96%;
    margin: 10px auto;
    height: 240px;
    background-color: white;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.gx-work ul li {
    overflow: hidden;
    float: left;
    width: 25%;
    height: 100px;
    padding: 5px;
    box-sizing: border-box;
}

.gx-work ul li:nth-child(1),
.gx-work ul li:nth-child(2) {
    width: 50%;
    height: 100px;
}

.gx-work ul li .gx-work-text h4 {
    white-space: nowrap;
    font-size: 16px;
    color: black;
}

.gx-work ul li .gx-work-text p {
    white-space: nowrap;
    font-size: 12px;
    color: #666771;
}

.gx-work ul li:nth-child(1) .gx-work-img a,
.gx-work ul li:nth-child(2) .gx-work-img a {
    float: left;
    display: block;
}

.gx-work ul li .gx-work-img a {
    display: block;
}

.gx-work ul li .gx-work-img a img {
    width: 65px;
    height: 65px;
    margin-left: 5%;
}

.gx-work ul li:nth-child(1) .gx-work-img a:nth-child(2) img,
.gx-work ul li:nth-child(2) .gx-work-img a:nth-child(2) img {
    margin-left: 25px;
}


/* 产品展示 */

.perdoct-show {
    width: 100%;
}

.perdoct-show ul li {
    float: left;
    box-sizing: border-box;
    width: 47%;
    height: 285px;
    background-color: white;
    margin: 0 0 2% 2%;
    border-radius: 2%;
    -webkit-border-radius: 2%;
    -moz-border-radius: 2%;
    -ms-border-radius: 2%;
    -o-border-radius: 2%;
}

.perdoct-show ul li a {
    display: block;
}

.perdoct-show ul li a .perduct-show-img {
    width: 100%;
    height: 185px;
}

.perdoct-show ul li a .perduct-show-img img {
    width: 100%;
    height: 100%;
}

.perdoct-show ul li a .perduct-show-text {
    margin-top: 10px;
}

.perdoct-show ul li a .perduct-show-text p {
    float: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    color: #1a1a1a;
}

.perdoct-show ul li a .perduct-show-text p img {
    font-size: 15%;
    height: 13px;
    margin-bottom: 3px;
}

.perdoct-show ul li a .price {
    margin-top: 10px;
}

.perdoct-show ul li a .price span {
    float: left;
    color: #fa2c19;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

.perdoct-show ul li a .price i {
    float: left;
    font-style: normal;
    width: 15%;
    height: 16px;
    border: 1px solid #fa2c19;
    color: #fa2c19;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
}

.perdoct-show ul li a .price em {
    float: right;
    width: 20%;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    background: #f0f2f5;
    border-radius: 11px;
    -webkit-border-radius: 11px;
    -moz-border-radius: 11px;
    -ms-border-radius: 11px;
    -o-border-radius: 11px;
}

.perdoct-show ul li a .puls {
    font-size: 10px;
    color: #232326;
}

.perdoct-show ul li a .puls::after {
    content: "";
    display: inline-block;
    width: 10%;
    height: 8px;
    background: url(../images/plus.png) no-repeat;
    background-size: 100% 100%;
}


/* 回到顶部按钮 */

.return-top {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 38px;
    height: 38px;
}

.return-top a {
    display: block;
    width: 100%;
    height: 100%;
    background: url(../images/top.png) no-repeat;
    background-size: 100% 100%;
}


/* 侧边的按钮 */

.aside-btn {
    position: fixed;
    width: 35px;
    right: 0;
    top: 125px;
    z-index: 999;
    height: 32px;
    background-color: #fa2c19;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.aside-btn a {
    display: block;
    width: 30px;
    height: 30px;
    background: url(../images/jd-logo.png) no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    margin-top: 1px;
    margin-left: 1px;
}


/* 脚部分 */

.foot {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: white;
    text-align: center;
    box-shadow: 0 -2px 3px rgba(0, 0, 0, .2);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.foot a {
    display: block;
    float: left;
    width: 20%;
}

.foot a img {
    width: 50%;
    height: 50%;
}